let express=require('express')
const { appendFile } = require('fs')
let app=express()
app.use(express.static('static'))

// *.在所有接口前设置 处理post请求参数的中间件
app.use(express.json())
app.use(express.urlencoded({ extended: false }))

let userRouter=require('./router/userRouter')
app.use('/user',userRouter)

app.listen(8080)